home *** CD-ROM | disk | FTP | other *** search
/ Chip 1996 November / Chip 11-96.iso / treiber / drucker / tally / t2x33 / t2033-b.exe / TALLYDRV / T2033 / WINNT3X / PRINTER.INF next >
Encoding:
INI File  |  1996-08-06  |  11.3 KB  |  302 lines

  1. [Identification]
  2.     OptionType = PRINTER
  3. [Options]
  4. "Mannesmann Tally T2033"        = rasddui,  t2x33,  rasdd
  5. "Mannesmann Tally T2133"        = rasddui,  t2x33,  rasdd
  6. [Identify]
  7.     read-syms Identification
  8.     set Status     = STATUS_SUCCESSFUL
  9.     set Identifier = $(OptionType)
  10.     set Media      = #("Source Media Descriptions", 1, 1)
  11.     Return $(Status) $(Identifier) $(Media)
  12.  
  13. [ReturnOptions]
  14.     set Status        = STATUS_FAILED
  15.     set OptionList     = {}
  16.     set OptionTextList = {}
  17.     set LanguageList = ^(LanguagesSupported, 1)
  18.     Ifcontains(i) $($0) in $(LanguageList)
  19.         goto returnoptions
  20.     else
  21.         set Status = STATUS_NOLANGUAGE
  22.         goto finish_ReturnOptions
  23.     endif
  24. returnoptions = +
  25.     set OptionList     = ^(Options, 0)
  26.     set OptionTextList = ^(OptionsText$($0), 1)
  27.     set Status         = STATUS_SUCCESSFUL
  28. finish_ReturnOptions = +
  29.     Return $(Status) $(OptionList) $(OptionTextList)
  30. [InstallOption]
  31.     set Status   = STATUS_FAILED
  32.     set Option   = $($1)
  33.     set SrcDir   = $($2)
  34.     set AddCopy  = $($3)
  35.     set DoCopy   = $($4)
  36.     set DoConfig = $($5)
  37.     set LanguageList = ^(LanguagesSupported, 1)
  38.     Ifcontains(i) $($0) in $(LanguageList)
  39.     else
  40.         set Status = STATUS_NOLANGUAGE
  41.         goto finish_InstallOption
  42.     endif
  43.     read-syms Strings$($0)
  44.     set OptionList = ^(Options, 0)
  45.     ifcontains $(Option) in $(OptionList)
  46.     else
  47.         goto finish_InstallOption
  48.     endif
  49.     set OptionList = ""
  50.     set ConfigOption = #(Options, $(Option), 1)
  51.     set DataOption   = #(Options, $(Option), 2)
  52.     set DriverOption = #(Options, $(Option), 3)
  53. installtheoption = +
  54.     ifstr(i) $(AddCopy) == "YES"
  55.         install Install-AddCopyOption
  56.         ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
  57.             Debug-Output "Adding video files to copy list failed"
  58.             goto finish_InstallOption
  59.         endif
  60.     endif
  61.     ifstr(i) $(DoCopy) == "YES"
  62.         read-syms ProgressCopy$($0)
  63.         install Install-DoCopyOption
  64.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  65.             Debug-Output "Copying files failed"
  66.             goto finish_InstallOption
  67.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  68.             set Status = STATUS_USERCANCEL
  69.             goto finish_InstallOption
  70.         endif
  71.     endif
  72.     ifstr(i) $(DoConfig) == "YES"
  73.         set DriverPath      = $(!STF_PRNDRIVERPATH)"\"#(Files-PrinterDriver, $(DriverOption), 2)
  74.         set DataFilePath    = $(!STF_PRNDRIVERPATH)"\"#(Files-PrinterData,   $(DataOption),   2)
  75.         set ConfigFilePath  = $(!STF_PRNDRIVERPATH)"\"#(Files-PrinterConfig, $(ConfigOption), 2)
  76.         LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(DriverPath)
  77.         ifstr(i) $(STATUS) == YES
  78.             LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(DataFilePath)
  79.             ifstr(i) $(STATUS) == YES
  80.                 LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(ConfigFilePath)
  81.             endif
  82.         endif
  83.         ifstr(i) $(STATUS) == NO
  84.             set OptionText = #(OptionsText$($0), $(Option), 1)
  85.             shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String4)$(OptionText)$(String5)
  86.             Debug-Output "Copying printer files failed"
  87.             goto finish_InstallOption
  88.         endif
  89.         install Install-Configure
  90.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  91.             Debug-Output "Installing printer driver failed"
  92.             goto finish_InstallOption
  93.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  94.             set Status = STATUS_USERCANCEL
  95.             goto finish_InstallOption
  96.         endif
  97.         ifstr(i) $(STATUS) != "ADDED"
  98.             set OptionText = #(OptionsText$($0), $(Option), 1)
  99.             ifstr(i) $(STATUS) == "PRESENT"
  100.                 shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String1)$(OptionText)$(String2)
  101.                 set Status = STATUS_SUCCESSFUL
  102.             else-ifstr(i) $(STATUS) == "DENIED"
  103.                 shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String6)
  104.             else
  105.                 shell "subroutn.inf" SetupMessage $($0) "NONFATAL" $(String1)$(OptionText)$(String7)
  106.             endif
  107.             goto finish_InstallOption
  108.         endif
  109.     endif
  110.     set Status = STATUS_SUCCESSFUL
  111. finish_InstallOption = +
  112.     Return $(Status)
  113. [Install-AddCopyOption]
  114.     set STF_VITAL = ""
  115.     set STF_OVERWRITE   = "VERIFYSOURCEOLDER"
  116.     AddSectionKeyFileToCopyList   Files-PrinterConfig          +
  117.                                   $(ConfigOption)              +
  118.                                   $(SrcDir)                    +
  119.                                   $(!STF_PRNDRIVERPATH)
  120.     AddSectionKeyFileToCopyList   Files-PrinterData            +
  121.                                   $(DataOption)                +
  122.                                   $(SrcDir)                    +
  123.                                   $(!STF_PRNDRIVERPATH)
  124.     AddSectionKeyFileToCopyList   Files-PrinterDriver          +
  125.                                   $(DriverOption)              +
  126.                                   $(SrcDir)                    +
  127.                                   $(!STF_PRNDRIVERPATH)
  128.     AddSectionKeyFileToCopyList   Files-PrinterDriverHelp      +
  129.                                   $(DriverOption)              +
  130.                                   $(SrcDir)                    +
  131.                                   $(!STF_PRNDRIVERPATH)
  132.     exit
  133. [Install-DoCopyOption]
  134.     CopyFilesInCopyList
  135.     exit
  136. [Install-Configure]
  137.     set Model       = $(Option)
  138.     set Driver      = #(Files-PrinterDriver, $(DriverOption), 2)
  139.     set DataFile    = #(Files-PrinterData,   $(DataOption),   2)
  140.     set ConfigFile  = #(Files-PrinterConfig, $(ConfigOption), 2)
  141.     LibraryProcedure STATUS,$(!LIBHANDLE), SetupAddPrinterDriver   +
  142.                                                $(Model)            +
  143.                                                $(!STF_PRNENVIRONM) +
  144.                                                $(Driver)           +
  145.                                                $(DataFile)         +
  146.                                                $(ConfigFile)       +
  147.                                                $(!STF_PRINTSERVER)
  148.     exit
  149. [ExternalInstallOption]
  150.     Set !G:DebugOutputControl = 0
  151.     set Exit_Code    = $(!SETUP_ERROR_GENERAL)
  152.     set DrivesToFree = {}
  153.     install LoadSetupLibrary
  154.     ifstr(i)      $(STF_LANGUAGE)  == ""
  155.         goto end
  156.     else-ifstr(i) $(OPTION)        == ""
  157.         goto end
  158.     else-ifstr(i) $(ADDCOPY)       == ""
  159.         goto end
  160.     else-ifstr(i) $(DOCOPY)        == ""
  161.         goto end
  162.     else-ifstr(i) $(DOCONFIG)      == ""
  163.         goto end
  164.     endif
  165.     read-syms PlatformID
  166.     read-syms ProductType
  167.     ifstr(i) $(STF_PLATFORM) == $(PlatformID_I386)
  168.         set STF_PRNPLATFORM = "w32x86"
  169.         set STF_PRNENVIRONM = "Windows NT x86"
  170.     else-ifstr(i) $(STF_PLATFORM) == $(PlatformID_Mips)
  171.         set STF_PRNPLATFORM = "w32mips"
  172.         set STF_PRNENVIRONM = "Windows NT R4000"
  173.     else-ifstr(i) $(STF_PLATFORM) == $(PlatformID_Alpha)
  174.         set STF_PRNPLATFORM = "w32alpha"
  175.         set STF_PRNENVIRONM = "Windows NT Alpha_AXP"
  176.     else
  177.         goto end
  178.     endif
  179.     read-syms UiVars
  180.     detect    UiVars
  181.     read-syms Strings$(STF_LANGUAGE)
  182.     ifstr(i) $(STF_SRCDIR) != $(STF_CWDDIR)
  183.         goto skip_asksource
  184.     endif
  185.     set STF_SRCDIR = A:\
  186.     shell "registry.inf" GetNTSource
  187.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  188.     else-ifstr(i) $($R0) != STATUS_SUCCESSFUL
  189.     else
  190.         set STF_SRCDIR = $($R1)
  191.     endif
  192.     shell "subroutn.inf" DoAskSource $(STF_SRCDIR)
  193.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  194.         Debug-Output "shelling DoAskSource failed"
  195.         goto end
  196.     endif
  197.     ifstr(i) $($R0) == STATUS_SUCCESSFUL
  198.         set STF_SRCDIR  = $($R1)
  199.         ifstr(i) $($R2) != ""
  200.             set DrivesToFree = >($(DrivesToFree), $($R2))
  201.         endif
  202.     else
  203.         goto end
  204.     endif
  205. skip_asksource = +
  206.     LibraryProcedure IsFullPath, $(!LIBHANDLE), CheckPathFullPathSpec $(STF_PRNDRIVERPATH)
  207.     ifstr(i) $(IsFullPath) == "NO"
  208.         LibraryProcedure STATUS, $(!LIBHANDLE), ProcessForUNC $(STF_PRNDRIVERPATH)
  209.         ifstr(i) $(STATUS) == "ERROR"
  210.             shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  211.             goto end
  212.         else-ifstr(i) $(STATUS) == "NOT-UNC"
  213.             shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  214.             goto end
  215.         else-ifstr(i) $(STATUS) == "UNC-FAILCONNECT"
  216.             shell "subroutn.inf" SetupMessage $(!STF_LANGUAGE) "NONFATAL" $(String3)
  217.             goto end
  218.         else
  219.             set STF_PRNDRIVERPATH = $(STATUS)
  220.         endif
  221.     endif
  222.     shell "" InstallOption $(STF_LANGUAGE) $(OPTION) $(STF_SRCDIR) $(ADDCOPY) $(DOCOPY) $(DOCONFIG)
  223.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  224.         Debug-Output "Execing InstallOption failed"
  225.         goto end
  226.     endif
  227.     ifstr(i) $($R0) == STATUS_SUCCESSFUL
  228.         set Exit_Code = $(!SETUP_ERROR_SUCCESS)
  229.     else-ifstr(i) $($R0) == STATUS_USERCANCEL
  230.         set Exit_Code = $(!SETUP_ERROR_USERCANCEL)
  231.     endif
  232. end =+
  233.     ForListDo $(DrivesToFree)
  234.         LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
  235.     EndForListDo
  236.     install   FreeSetupLibrary
  237.     exit
  238. [LoadSetupLibrary]
  239.     LoadLibrary "x" $(!STF_CWDDIR)setupdll.dll !LIBHANDLE
  240.     exit
  241. [FreeSetupLibrary]
  242.     FreeLibrary $(!LIBHANDLE)
  243.     exit
  244. [PlatformID]
  245.     PlatformID_I386 = I386
  246.     PlatformID_Mips = Mips
  247.     PlatformID_Alpha  = Alpha
  248. [UiVars]
  249.     STF_CONTROLSET     = CurrentControlSet
  250.     STF_WINDOWSPATH    = "" ? $(!LIBHANDLE) GetWindowsNtDir
  251.     STF_WINDOWSSYSPATH = "" ? $(!LIBHANDLE) GetWindowsNtSysDir
  252.     STF_PRNDRIVERPATH  = "" ? $(!LIBHANDLE) GetPrinterDriverDir $(!STF_PRINTSERVER) $(!STF_PRNENVIRONM)
  253. [Source Media Descriptions]
  254.    1  = "OEM Disk (PRINTER)"  , TAGFILE = *
  255. [Signature]
  256.     FileType = MICROSOFT_FILE
  257. [GetSignature]
  258.     read-syms Signature
  259.     return $(FileType)
  260. [ProductType]
  261. STF_PRODUCT  = Winnt
  262. STF_PLATFORM = I386
  263. [Files-PrinterConfig]
  264. rasddui = 1,RASDDUI.DLL,SIZE=99999
  265. [Files-PrinterData]
  266. t2x33 = 1,T2X33.DLL,SIZE=99999
  267. [Files-PrinterDriver]
  268. rasdd = 1,RASDD.DLL,SIZE=99999
  269. [Files-PrinterDriverHelp]
  270. rasdd = 1,RASDDUI.HLP,SIZE=99999
  271. [LanguagesSupported]
  272.     ENG
  273. [OptionsTextENG]
  274. "Mannesmann Tally T2033"        = "Mannesmann Tally T2033"
  275. "Mannesmann Tally T2133"        = "Mannesmann Tally T2133"
  276. [StringsENG]
  277.     String1 = "The printer model "
  278.     String2 = " is already installed."
  279.     String3 = "Failed to connect to the print server."
  280.     String4 = "The driver files for the printer model "
  281.     String5 = " couldn't be copied.  Failed to install the printer model."
  282.     String6 = "Access is denied. You must be logged on as a member of the Administrators "+
  283.               "group to carry out this operation."
  284.     String7 = " could not be installed."
  285. [ProgressCopyENG]
  286.     ProCaption   = "Windows NT Setup"
  287.     ProCancel    = "Cancel"
  288.     ProCancelMsg = "Windows NT is not correctly installed.  Are you sure you want "+
  289.                    "to cancel copying files?"
  290.     ProCancelCap = "Setup Message"
  291.     ProText1     = "Copying:"
  292.     ProText2     = "To:"
  293.  
  294.  
  295.  
  296.  
  297.  
  298.  
  299.  
  300.  
  301.  
  302.